/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.tabbedproperties.section;

import org.eclipse.uml2.uml.Port;

import com.cea.papyrus.core.tabbedproperties.AppearenceSectionFilter;
import com.cea.papyrus.diagram.composite.editpart.PortNameEditPart;

/**
 * Section filter for port label appearence.
 * 
 * @author Remi Schnekenburger
 */
public class PortAppearenceSectionFilter extends AppearenceSectionFilter {

    /* (non-Javadoc)
     * @see com.cea.papyrus.core.ui.properties.tabbed.UMLElementFilter#select(java.lang.Object)
     */
	/**
     * 
     * 
     * @param object 
     * 
     * @return 
     */
    public boolean select(Object object) {
    	
		// element is a pport
    	if (super.select(object) 
    			&& (object instanceof PortNameEditPart)
    			&&(element instanceof Port)) { 
        	return true;      	
        }
        // else 
        return false;
    }

}
